FROM node:8 as builder

WORKDIR /app

COPY src ./src
COPY public ./public
COPY package.json babel.config.js  ./
RUN npm install
RUN npm run build

FROM nginx:1.17.6

WORKDIR /app

COPY --from=builder /app/dist /usr/share/nginx/html
